package com.vken.blog.model;

import javax.persistence.*;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Entity;
import org.hibernate.annotations.Table;

@Entity
@Table(name = "blog")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Blog implements java.io.Serializable {
	private static final long serialVersionUID = 40613377321325297L;
	private Integer id;
	private String name;
	private String description;
	private Integer entryNumber;
	private Integer recentCommentNumber;
	private Integer recentEntryNumber;
	private Integer backendPageSize;
	private Integer status;
	private Integer commentAudit;

	public Blog() {
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", nullable = false, updatable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name", nullable = false, length = 200)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "description", length = 400)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "entry_number", nullable = false)
	public Integer getEntryNumber() {
		return this.entryNumber;
	}

	public void setEntryNumber(Integer entryNumber) {
		this.entryNumber = entryNumber;
	}

	@Column(name = "recent_comment_number", nullable = false)
	public Integer getRecentCommentNumber() {
		return this.recentCommentNumber;
	}

	public void setRecentCommentNumber(Integer recentCommentNumber) {
		this.recentCommentNumber = recentCommentNumber;
	}

	@Column(name = "recent_entry_number", nullable = false)
	public Integer getRecentEntryNumber() {
		return this.recentEntryNumber;
	}

	public void setRecentEntryNumber(Integer recentEntryNumber) {
		this.recentEntryNumber = recentEntryNumber;
	}

	@Column(name = "status", nullable = false)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "backend_page_size", nullable = false)
	public Integer getBackendPageSize() {
		return backendPageSize;
	}

	public void setBackendPageSize(Integer backendPageSize) {
		this.backendPageSize = backendPageSize;
	}

	@Column(name = "comment_audit", nullable = false)
	public Integer getCommentAudit() {
		return this.commentAudit;
	}

	public void setCommentAudit(Integer commentAudit) {
		this.commentAudit = commentAudit;
	}
}